package com.yuan.nacosconsumer.service;/**
 * @ClassName FeignService
 * @Description TODO
 * @Author yuan
 * @Date 2020/8/7 9:04
 * @Version 1.0
 */

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @ClassName FeignService
 * @Description:
 * @Author yuan
 * @Date 2020/8/7 
 * @Version V1.0
 **/

@FeignClient(value = "nacos-provider")
public interface FeignService {

    @GetMapping("/hello")
    String hello(@RequestParam(value = "name", defaultValue = "default Name", required = false) String name);
}
